package com.intramirror.product.exception;

/**
 * Created on 2018/1/26.
 * @author 123
 */
public class BusinessException extends Exception {
    private int errCode;
    private String errMsg;

    public BusinessException(String message) {
        super(message);
        this.errMsg = message;
    }

    public BusinessException(String message, Throwable cause) {
        super(message, cause);
        this.errMsg = message;
    }

    public BusinessException(int errCode, String errMsg) {
        super(errMsg);
        this.errCode = errCode;
        this.errMsg = errMsg;
    }

    public BusinessException(int errCode, String errMsg, Throwable cause) {
        super(errMsg, cause);
        this.errCode = errCode;
        this.errMsg = errMsg;
    }
}
